package com.imti.mall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.order.pojo.OmsApplyAudit;
import com.imti.mall.model.order.pojo.OmsOrderReturnApply;
import com.imti.mall.model.order.query.ReturnApplyQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
@Transactional
public interface OmsOrderReturnApplyMapper extends BaseMapper<OmsOrderReturnApply> {

    List<OmsOrderReturnApply> getList(@Param("query") ReturnApplyQuery returnApplyQuery);

    int updateStatusById(@Param("id")Long id,@Param("query")OmsApplyAudit omsApplyAudit);

    Long countReturnApply(@Param("query") ReturnApplyQuery returnApplyQuery);
}
